<template>
  <view class="section-title">
    <u-icon :name="icon" color="#FF9FB5" size="18"></u-icon>
    <text>{{ title }}</text>
  </view>
</template>

<script setup lang="ts">
// 定义props
const props = defineProps({
  title: {
    type: String,
    required: true
  },
  icon: {
    type: String,
    required: true
  }
});
</script>

<style lang="scss" scoped>
.section-title {
  display: flex;
  align-items: center;
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 20rpx;
}

.section-title u-icon {
  margin-right: 10rpx;
}
</style> 